# Importing Image and ImageFont, ImageDraw module from PIL package  
from PIL import Image, ImageFont, ImageDraw  
import random, math      
# creating a image object  
bgColor = (random.randint(200, 255), random.randint(200, 255), random.randint(200, 255))
image = Image.new('RGB', (120,45), bgColor)
# image = Image.open(r'C:\Users\System-Pc\Desktop\flower.jpg')  
draw = ImageDraw.Draw(image)  
# specified font size 
font = ImageFont.truetype(r'C:\Windows\Fonts\arial.ttf', 20)  
text = 'LAUGHING \n BEST'
# drawing text size 
draw.text((5, 5), text, fill ="red", font = font, align ="right")  
image.show()